package org.xlx.xlx_oa.attendance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.xlx.xlx_oa.common.BaseEntity;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Attendance对象", description = "")
public class Attendance extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "出勤id/出勤编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "出勤日期")
    private LocalDateTime attendanceDate;

    @ApiModelProperty(value = "签到时间")
    private LocalDateTime onDutyTime;

    @ApiModelProperty(value = "签退时间")
    private LocalDateTime offDutyTime;

    @ApiModelProperty(value = "申请单id")
    private Long applyId;
}
